package com.yugao.fintech.antelope.mps.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.antelope.base.model.BasePlusPO;
import com.yugao.fintech.antelope.base.tenant.core.DataIsolation;
import lombok.Getter;
import lombok.Setter;

/**
 * 消息模板
 *

 */
@Getter
@Setter
@TableName("mps_msg_template")
@DataIsolation(filterTenant = true, tableName = "mps_msg_template")
public class MsgTemplate extends BasePlusPO {
    @TableId
	private Long id;
	
	/**
	 * 任务id
	 */
	private Long taskId;

	/**
	 * 模板标题
	 */
	private String title;
	
	/**
	 * 状态, true: 启用, false: 禁用
	 */
	private Boolean status;
	
	/**
	 * 渠道类型
	 */
	private String channelType;
	
	/**
	 * 模板配置, json格式
	 */
	private String templateConfig;

    public static LambdaQueryWrapper<MsgTemplate> lqw() {
		return Wrappers.lambdaQuery();
	}

	public static LambdaUpdateWrapper<MsgTemplate> luw() {
		return Wrappers.lambdaUpdate();
	}

}
